var mongoose = require('mongoose');

var Device = new mongoose.Schema({
	hwAddress : {
		type : String,
		unique : true
	},
	inetAddress : {
		type : String
	},
	name : {
		type : String,
		unique : true
	},
	status : {
		type : String,
		index : true
	},
	location : {
		type : String
	},
	description : {
		type : String
	}
});

exports.schema = Device;
exports.name = 'Device';
